namespace Roids.SL
{
    using Framework;
    using Microsoft.Xna.Framework;

    public class Asteroid : SceneItem
    {
        public double NoCollisionDecay = 0.5;
        public double NoCollisionLife = 2;

        public Asteroid(Game game, int size) : base(game)
        {
            Radius = size;
        }

        public override void Update(GameTime gameTime)
        {
            this.WrapPositionIfCrossing(Game.Window.ClientBounds);

            base.Update(gameTime);

            if (NoCollisionLife > 0) NoCollisionLife -= NoCollisionDecay*gameTime.ElapsedGameTime.TotalSeconds;
        }
    }
}